# coding:utf8
import urllib2
class HtmlDownloader(object):
    def download(self, new_url):
        headers = {'User-Agent':'Mozilla/5.0 (X11; U; Linux i686)Gecko/20071127 Firefox/2.0.0.11'}
        req = urllib2.Request(url=new_url,headers=headers)
        responses=urllib2.urlopen(req)
        content=responses.read()
        code=responses.getcode()
        responses.close()
        return content,code

